package com.qf.consumer.listeners;

import com.qf.consumer.pojo.Order;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

//@Component
//@RocketMQMessageListener(topic = "test1",consumerGroup = "consumer-group2")
public class RocketMQListener7 implements RocketMQListener<Order> {
    @Override
    public void onMessage(Order message) {
        System.out.println("group2-consumer-msg:" + message);
        System.out.println("----------------");
    }
}
